RAIS  3.2
C:/Projekte/RAIS/UI Common/Constants.cs
Go to the documentation of this file.
00001 
00027 using System;
00028 using System.Collections.Generic;
00029 using System.Text;
00030 
00031 namespace RAIS.UI.Common
00032 {
00036     public class Constants
00037     {
00038         #region Session tags
00039 
00042         public const string HELP_CONTEXT_TAG = "HelpContext";
00046         public const string CURRENT_LANGUAGE_TAG = "CurrentLanguage";
00050         public const string CURRENT_USER_TAG = "CurrentUser";
00054                 public const string SELECTED_USER_TAG = "SelectedUser";
00058         public const string SELECTED_USER_TAG_HISTORY = "SelectedUser_History";
00062         public const string SELECTED_CATEGORY_TAG = "CurrentCategory";
00066                 public const string SELECTED_FACILITY_TAG = "SelectedFacility";
00070                 public const string SELECTED_DEPARTMENT_TAG = "SelectedDepartment";
00074         public const string CURRENT_USER_SITEMAP_TAG = "CurrentUserSitemap";
00078         public const string LAST_USER_TAG = "LastUser";
00082         public const string ADD_EDIT_USER_PAGE_MODE_TAG = "AddEditUserMode";
00086         public const string DATA_ROLES_TAG = "DataRoles";
00090         public const string DATA_ROLE_EDIT_MODE_TAG = "DataRoleEditMode";
00094         public const string EDITTING_EXISTING_DATA_ROLE = "Edit existing role's details.";
00098         public const string ADDING_NEW_DATA_ROLE = "Enter new functional role.";
00102         public const string DATA_ROLE_TEMPORARY_TAG = "DATA_ROLE_TEMPORARY_TAG";
00106         public const string REGIONS_TAG = "Regions";
00110                 public const string PREDEFINED_FUNCTION_ROLES_TAG = "PredefinedFuncitonRoles";
00114         public const string FUNCTION_ROLES_TAG = "FuncitonRoles";
00118         public const string FUNCTION_ROLE_TEMPORARY_TAG = "FUNCTION_ROLE_TEMPORARY_TAG";
00122         public const string FUNCTION_ROLE_CATEGORIES_TAG = "FuncitonRoleCategories";
00126         public const string FUNCTION_ROLE_SUBCATEGORIES_TAG = "FuncitonRoleSubcategories";
00130         public const string FUNCTION_ROLE_EDIT_MODE_TAG = "FuncitonRoleEditMode";
00134                 public const string DATA_ROLE_SAVED_SELECTION_TAG = "DataRoleSavedSelection";
00138                 public const string FUNCTION_ROLE_SAVED_SELECTION_TAG = "FuncitonRoleSavedSelection";
00142         public const string EDITTING_EXISTING_FUNCTIONAL_ROLE = "Edit existing role's details.";
00146         public const string ADDING_NEW_FUNCTIONAL_ROLE = "Enter new functional role.";
00150         public const string MASKS_TAG = "Masks";
00154         public const string PAGES_TAG = "Pages";
00158         public const string SELECTED_TARGET_CULTURE = "SelectedLanguage";
00162         public const string PAGE_ACCESS_RIGHTS_TAG = "PageAccessRights";
00166         public const string SITE_MAP_EXPANSION_STATES = "SiteMapExpansionStates";
00170         public const string SITE_MAP_SELECTED_NODE = "SiteMapSelectedNode";
00174         public const string TABLES_TAG = "TABles";
00178                 public const string TABLES_GROUP_ID_TAG = "GroupID";
00182                 public const string SAVED_GROUP_TAG = "GroupName";
00186                 public const string TABLE_NAME_TAG = "TableName";
00190         public const string CUSTOM_TABLES_EDIT_MODE_TAG = "CustomTablesEditMode";
00194                 public const string CUSTOM_QUERIES_EDIT_MODE_TAG = "CustomQueriesEditMode";
00198                 public const string CUSTOM_QUERY_PARAMETERS_EDIT_MODE_TAG = "CustomQueryParametersEditMode";
00202         public const string TRANSLATIONS_EDIT_MODE_TAG = "TranslationsEditMode";
00206                 public const string CURRENT_TABLE_TAG = "CurrentTable";
00210                 public const string SUCCESS_MESSAGE_TAG = "SuccessMessage";
00214                 public const string SAVED_MASK_ID_TAG = "SavedMaskID";
00218                 public const string SELECTED_VALUE_TAG = "SelectedValue";
00222                 public const string FILTERS_VALUES_TAG = "FiltersValues";
00226                 public const string QUERIES_FILTERS_VALUES_TAG = "QueriesFiltersValues";
00230                 public const string SHOW_HIDDEN_STATE_TAG = "ShowHiddenState";
00234                 public const string QUERIES_TAG = "Queries";
00238                 public const string QUERY_SAVED_SELECTION_TAG = "QuerySavedSelectionTag";
00242                 public const string QUERY_PARAMETERS_TAG = "QueryParameters";
00246                 public const string QUERY_PARAMETER_TYPES_TAG = "QueryParameterTypes";
00250                 public const string DYNAMIC_MASKS_TAG = "DynamicMasks";
00254                 public const string CONSISTENCY_CHECKS_PARAMETERS_TAG = "ConsistencyChecks";
00258                 public const string RECORD_TYPES_TAG = "RecordTypes";
00262                 public const string FIELDS_TAG = "Fields";
00266                 public const string USER_STATUSES_TAG = "UserStatuses";
00267 
00268         public const string IcSRS_LOGIN_TAG = "IcSRSLogin";
00269 
00270         public const string IcSRS_PASSWORD_TAG = "IcSRSPassword";
00274                 public const string VALIDATION_MESSAGE_ID_TAG = "ValidationMessageID";
00278                 public const string NON_COMPLIANCE_MAJOR_CATEGORIES_TAG = "NonComplianceMajorCategories";
00282                 public const string NON_COMPLIANCE_CATEGORIES_TAG = "NonComplianceCategories";
00286                 public const string AUTHORIZATION_PROCESS_NUMBER_TAG = "AuthorizationProcessNumber";
00290         public const string ENFORCEMENT_PROCESS_NUMBER_TAG = "EnforcementProcessNumber";
00295         public const string DOWNLOAD_FILES_LIST = "Download_Files";
00299         public const string SEALED_SOURCE_COLLECTION = "Sealed_Source_Collection";
00303                 public const string SEARCH_ITEMS_TAG = "SearchItems";
00307                 public const string SEARCH_DEFINITIONS_TAG = "SearchDefinitions";
00308                 #endregion
00309                 #region ViewState tags
00310 
00313                 public const string CURRENT_FORM_MODE_TAG = "currentFormMode";
00317                 public const string RELEASE_REJECT_SUBMODE_TAG = "releaseRejectSubmode";
00321                 public const string RELEASE_REJECT_SUBMODE_PARAMETER_NAME = "mode";
00325                 public const string RELEASE_REJECT_PARAMETER_VALUE = "release";
00329                 public const string CURRENT_NAME_LIST_INDEX_TAG = "currentNameListIndex";
00333                 public const string SORT_COLUMN_NUMBER_TAG = "sortColumnNumber";
00337                 public const string SORT_DIRECTION_TAG = "sortDirection";
00338                 #endregion ViewState tags
00339                 #region Pages
00340 
00343         public const string AUTHORIZED_HOME_PAGE = "Default.aspx";
00347         public const string LOGIN_PAGE = "LoginPage.aspx";
00351         public const string EDIT_TRANSLATION_PAGE = "EditTranslation.aspx";
00355         public const string EDIT_HELP_PAGE = "EditHelp.aspx";
00359                 public const string MASK_ID_PARAMETER_NAME = "id";
00363                 public const string TAB_ID_PARAMETER_NAME = "tabId";
00367                 public const string PARENT_ID_PARAMETER_NAME = "parentId";
00371         public const string ROW_ID_PARAMETER_NAME = "rowId";
00375                 public const string ADD_ROW_FORM_MODE_PARAMETER_NAME = "addRow";
00379                 public const string TABLE_ID_PARAMETER_NAME = "tableId";
00383                 public const string USER_ID_PARAMETER_NAME = "id";
00387                 public const string PAGE_ORIENTATION_PARAMETER_NAME = "orientation";
00388                 #endregion
00389         #region Controls
00390 
00391 
00392 
00393         public const int ENGLISH_CULTURE_LCID = 1033;
00397         public const string TREEVIEW_ID = "TreeView1";
00398 
00399         public const string ENGLISH_CULTURE_NAME = "English";
00403         public const string TRANSLATION_EDIT_TEXT = "txtDestLanguageCaption";
00407         public const string TRANSLATION_ITEM_NAME = "txtCaptionName";
00411                 public const string ATTRIBUTE_CLASS_NAME = "class";
00415                 public const string CSS_CLASS_DM_LABELS_COLUMN = "dmLabelsColumn";
00419                 public const string CSS_CLASS_DM_INPUT_CONTROLS_COLUMN = "dmInputControlsColumn";
00423                 public const string CSS_CLASS_DM_ERROR_MESSAGES_COLUMN = "dmErrorMessagesColumn";
00427                 public const string CSS_CLASS_DM_TEXT_BOX = "dmTextBox";
00431                 public const string CSS_CLASS_DM_DATE_TEXT_BOX = "dmDateTextBox";
00435                 public const string CSS_CLASS_DM_DATE_FORMAT_LABEL = "dmDateFormalLabel";
00439                 public const string CSS_CLASS_DM_SINGLE_LOOKUP_DROPDOWN = "dmSingleLookupDropDown";
00443                 public const string CSS_CLASS_DM_LOOKUP_WITH_NUMBER_TEXT_BOX = "dmLookupWithNumberTextBox";
00447                 public const string CSS_CLASS_DM_LOOKUP_WITH_NUMBER_DROP_DOWN = "dmLookupWithNumberDropDown";
00451                 public const string CSS_CLASS_FILTER_LABEL = "filterDDLlabel";
00455                 public const string CSS_CLASS_FILTER_DROPDOWN = "filterDDL";
00459                 public const string CSS_CLASS_MULTILOOKUP_ENABLED_COLUMN = "multilookupColumnEnabled";
00463                 public const string CSS_CLASS_MULTILOOKUP_DISABLED_COLUMN = "multilookupColumnDisabled";
00467         public const string DATA_ROLE_RESTRICTIONS_MENU_ITEM_TEXT = "Menu item:";
00471         public const string DATA_ROLE_RESTRICTIONS_SUBCATEGORY_TEXT = "Sub menu:";
00475         public const string DATA_ROLE_RESTRICTIONS_CATEGORY_TEXT = "Main menu:";
00479         public const string DATA_ROLE_RESTRICTIONS_ALL_MASKS_TEXT = "[All masks]";
00483         public const string DATA_ROLE_RESTRICTIONS_SELECT_ALL_TEXT = "[Select all]";
00487                 public const int MULTIPLE_LOOKUP_ROWS_NUMBER = 3;
00491                 public const int MULTILINE_TEXTBOX_ROWS_NUMBER = 2;
00495                 public const int HIGHFIELD_TEXTBOX_ROWS_NUMBER = 10;
00499                 public const string INTEGER_VALIDATION_EXPRESSION = @"(^-?\d\d*$)";
00503         public static string RATIONAL_VALIDATION_EXPRESSION =
00504                         string.Format(@"(^(-?|\+?)\d\d*\{0}\d*$)|(^(-?|\+?)\d\d*$)|(^(-?|\+?)\{0}\d\d*$)|(^(-?|\+?)\d\d*\{0}\d*(E|e)(-?|\+?)\d\d*$)|(^(-?|\+?)\d\d*(E|e)(-?|\+?)\d\d*$)|(^(-?|\+?)\{0}\d\d*(E|e)(-?|\+?)\d\d*$)"
00505                                 , System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator);
00509                 public static string RATIONAL_VALUE_FORMAT = "{0:F3}";
00513                 public static string SCIENTIFIC_VALUE_FORMAT = "{0:E2}";
00517                 public const string DATETIME_VALIDATION_EXPRESSION = @"^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$";
00521         public const string REDIRECTION_URL_PREFIX = "_URL_PREFIX";
00525                 public static System.Drawing.Color COLOR_OF_REQUIRED_FIELD = System.Drawing.Color.Red;
00529         public static System.Drawing.Color COLOR_OF_SUGGESTED_FIELD = System.Drawing.Color.DarkBlue;
00533         public static System.Drawing.Color COLOR_OF_NOT_REQUIRED_FIELD = System.Drawing.Color.Black;
00537         public static System.Drawing.Color COLOR_OF_MENU_BAR_TEXT_HIGHLIGHT = System.Drawing.Color.DarkRed;
00541                 public const string NEXT_BUTTON_TEXT = "Next";
00545                 public const string APPLY_BUTTON_TEXT = "Apply";
00546                 #endregion
00547 
00548 
00552         public const string MESSAGEBOX_RESTRICTION_ADDED = "New Messagebox restriction added."; //#-#
00556         public const string MESSAGEBOX_USERASSIGNMENT_ADDED = "New Messagebox restriction take over added.";
00560         //#-#
00561         public const string MESSAGEBOX_USERASSIGNMENT_DELETED = "Messagebox restriction take over deleted.";
00565         //#-#
00566         public const string MESSAGEBOX_USERASSIGNMENT_EDITED = "Messagebox restriction take over edited.";
00570         //#-#
00571         public const string MESSAGEBOX_USERASSIGNMENT_ADDED_FAIL = "New Messagebox restriction take over could not be added, please check you input.";
00572 
00576         //#-#
00577         public const string MESSAGEBOX_USERASSIGNMENT_EDITED_FAIL = "New Messagebox restriction take over could not be edited, please check you input.";
00578 
00582         public const string MESSAGEBOX_RESTRICTION_EDITED = "Messagebox restriction edited.";
00586         public const string MESSAGEBOX_RESTRICTION_DELETED = "Messagebox restriction deleted.";
00587 
00591         public const string USER_PERM_EDIT_MODE_TAG = "UserPermEditMode";
00595         public const string ADDING_NEW_USER_PERM = "Specify new Messagebox restriction";
00599         public const string EDITING_EXISTING_USER_PERM = "Edit existing Messagebox restriction details.";
00603         public const string USER_PERM_TEMPORARY_TAG = "USER_PERM_TEMPORARY_TAG";
00607         public const string USER_ASSIGNMENT_EDIT_MODE_TAG = "UserAssignmentEditMode";
00611         public const string ADDING_NEW_USER_ASSIGNMENT = "Specify new Messagebox restriction take over";
00615         public const string EDITING_EXISTING_USER_ASSIGNMENT = "Edit existing Messagebox restriction details.";
00619         public const string USER_ASSIGNMENT_TEMPORARY_TAG = "USER_ASSIGNMENT_TEMPORARY_TAG";
00620 
00624         public const string TAKEOVER_EDIT_MODE_TAG = "TakeoverEditMode";
00625 
00629         public const string TAKEOVER_ASSIGNMENT_TEMPORARY_TAG = "TAKEOVER_ASSIGNMENT_TEMPORARY_TAG";
00630 
00634         public const string TAKEOVER_ASSIGNED_USERS = "TAKEOVER_ASSIGNED_USERS";
00635 
00639         public const string TAKEOVER_AVAILABLE_USERS = "TAKEOVER_AVAILABLE_USERS";
00640 
00641         public const string RESTRICTION_SAVE_FAIL = "A valid restriction demands at least one filter criteria and valid date fields.";
00642 
00643         public const string TAKE_OVER_SAVE_FAIL = "The values for the date fields need to be in the specified formatting";
00644 
00645         public const string RESTRICTION_SAVE_DATE_FAIL = "The From field represents a later date than the Until field.";
00646 
00647     }
00648 }